import { IonicModule } from '@ionic/angular';
import { RouterModule, Routes } from '@angular/router';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { MyPage } from './my';
import { AboutPage } from '@pages/my/about/about';
import { SetPage } from '@pages/my/settings/settings';
import { PersonInfoPage } from '@pages/my/person-info/person-info';
import { ScorePage } from '@pages/my/score/score';
import { InstallPage } from '@pages/my/score/install/install';
import { MonitorPage } from '@pages/my/score/monitor/monitor';
import { InstallationPage } from '@pages/my/score/installation/installation';
import { InstallSelectPage } from '@pages/my/score/installSelect/installSelect';
import { InstrumentPage } from '@pages/my/score/instrument/instrument';
import { TaskPage } from '@pages/my/task/task';
import { PersonalManagerPage } from '@pages/my/personal-manager/personal-manager';


import { AlarmDetailPage } from '@components/alarm-detail/alarm-detail';


const routs: Routes = [
    { path: '', component: MyPage },
    { path: 'personInfo', component: PersonInfoPage },
    { path: 'settings', component: SetPage },
    { path: 'about', component: AboutPage },
    { path: 'score', component: ScorePage },
    { path: 'InstallPage', component: InstallPage },
    { path: 'MonitorPage', component: MonitorPage },
    { path: 'InstallationPage', component: InstallationPage },
    { path: 'InstrumentPage', component: InstrumentPage },
    { path: 'InstallSelectPage', component: InstallSelectPage },
    { path: 'task', component: TaskPage },
    { path: 'personal', component: PersonalManagerPage },
    { path: 'AlarmDetailPage', component: AlarmDetailPage },
];

@NgModule({
    imports: [
        IonicModule,
        CommonModule,
        FormsModule,
        RouterModule.forChild(routs)
    ],
    exports: [RouterModule],
})
export class MePageRoutingModule { }
